<template>
  <div class="main">
    <div class="main_header">
      <img src="../assets/pic/main-title-pic.png" alt="">
      <div class="title">
        <div class="big-title">{{$route.meta.showTitle}}</div>
        <div class="small-title">科技驱动农业变革，引领现代化农业发展</div>
      </div>
    </div>
    <div class="main_body w clearfix">
      <router-view/>
    </div>
    <div class="main_footer"></div>
  </div>
</template>

<script>
export default {
  name:'Main',

  methods: {

  },
}
</script>

<style scoped>

  .main_body{
    box-sizing: border-box;
    background-color: #fff;
    padding: 50px 0;
    margin-bottom: 5px;
    box-shadow: 0 5px 5px rgba(0,0,0,.3);
  }

  .main{
    min-width: 1226px;
    background-color: #e9e9e9;
  }

  .main_header{
    position: relative;
  }

  .main_header img{
    vertical-align: center;
    /*max-width: 100%;*/
    min-width: 100%;
  }

  .title{
    top: 0;
    bottom: 0;
    position: absolute;
    color: #e9e9e9;
    width: 100%;
    height: 150px;
    line-height: 50px;
    margin:auto 0;
    text-align: center;
    animation-name: run;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
  }

  .title .big-title{
    font-size: 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }

  .title .small-title{
    margin-top: 50px;
    font-size: 30px;
  }

</style>